using System;
using System.Linq.Expressions;

namespace Close.io.API
{
	public static class CloseIoFields<T>
	{

		public static CloseIoFieldListBuilder<T> Add<TMember>(Expression<Func<T, TMember>> expression)
		{
			if (expression == null)
			{
				throw new ArgumentNullException("expression");
			}

			return new CloseIoFieldListBuilder<T>().Add(expression);
		}
	}
}